Preparing and Running LATEX on Your Own Files

You must use a text editor to prepare an input file for LATEX. The document Welcome to SRC describes the text editors available at SRC. The easiest way to start learning about LATEX is by examining the file small.tex with your text editor. You can obtain your own copy of this file, in your directory, by typing the command

     cp /usr/local/lib/tex82/small.tex .

After you have prepared your file, whose name should have the extension tex, you must run it through LATEX and print the output. Follow the instructions in Section [*], except substitute the first name of your file for ``sample''. Remember to save disk space by deleting the dvi file after printing the output.

If you want to stop LATEX in the middle of its execution, perhaps because it is printing a seemingly unending string of uninformative error messages, type Control-C (press C while holding down the key labeled CTRL). This will make LATEX stop as if it had encountered an ordinary error, and you can return to Ultrix command level by typing X, as described in the manual. If typing Control-C doesn't work, typing Control-Z will get you immediately to Ultrix command level, but this will leave a stopped job hanging around. A stopped job won't hurt anything and will disappear when you log out, but it forces you to type two successive logout commands to log out.

To use the spell program for finding spelling errors in a LATEX input file named myfile.tex, type the following command:

     delatex myfile.tex | spell
This will type a list of possibly misspelled words on your terminal. If you'd rather have the output written to a file named foo.bar, type
     delatex myfile.tex | spell >foo.bar